<?="<?xml version=\"1.0\" encoding=\"utf-8\"?>"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>EricDingle.com</title>
		<link>http://www.ericdingle.com</link>
		<description>EricDingle.com Blog</description>
		<lastBuildDate><?=$posts[0]->getDate()->toRFC822Str()?></lastBuildDate>
		<language>en-us</language>
		<atom:link href="http://www.ericdingle.com/rss" rel="self" type="application/rss+xml"/>
		<? foreach ($posts as $post) { ?>
		<item>
			<title><?=$post->getTitle()?></title>
			<link>http://www.ericdingle.com/viewPost?postID=<?=$post->getPostID()?></link>
			<guid>http://www.ericdingle.com/viewPost?postID=<?=$post->getPostID()?></guid>
			<pubDate><?=$post->getDate()->toRFC822Str()?></pubDate>
			<description>
				<![CDATA[
					<?=$post->getContent()?>
					<p>
						<? if ($post->getPreviewPhoto()) { ?>
						<a href="http://www.ericdingle.com/viewAlbum?postID=<?=$post->getPostID()?>">View Album</a>
						<? } ?>
						<a href="http://www.ericdingle.com/viewPost?postID=<?=$post->getPostID();?>#comments">View Comments</a>
					</p>
				]]>
			</description>
		</item>
		<? } ?>
	</channel>
</rss>
